<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html style="height:100%;overflow:hidden;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>工作区</title>
<jsp:include page="/common/link.jsp"></jsp:include>
<link rel="stylesheet" type="text/css" media="all" href="/portal/njs/basd/soChange1.6.1/style.css" />
<script src="/portal/njs/basd/soChange1.6.1/jquery.soChange-min.js" type="text/javascript"></script>
</head>

<body style="height:100%">
	<div class="fullscreenDiv" style="width:100%;height:100%">
		<iframe src="/portal/panel.do" id="panelfrm" width=100% height=100%
			frameborder="0" allowtransparency="true" hspace="0" vspace="0"
			scrolling="auto"></iframe>
    </div>

</body>
</html>
<script>

	function addTab(tabId,tabName,url){
		if(!tab.isTabItemExist(tabId)){
			// 添加tab
			$(".tabspage").removeClass("tabspage-2");
			tab.addTabItem({ tabid : tabId,text: tabName, url: url });
		}else{
			tab.selectTabItem(tabId);
			tab.reloadUrl(tabId,url);
		}
	}
	function removeTab(tabId){
		if(tab.isTabItemExist(tabId)){
			tab.removeTabItem(tabId);
		}
	}
	
	function refreshPanel(panelId){
		var $iframe = $("#panelfrm").contents().find("#"+panelId+" iframe");
		$iframe.attr("src",$iframe.attr("src"));
	}
	
	function autoHeight(panelId,iframe_height){
		if(iframe_height!="0"){
			var $newbox = $("#panelfrm").contents().find("#"+panelId);
			var $ttcorner = $(".newbox-tt",$newbox);
			var $newboxArea = $(".newbox-area",$newbox);
			
			var ttHeight = $ttcorner.height();
			var h = parseInt(iframe_height) + parseInt(ttHeight);
			$newbox.attr({style:"height:"+h+"px"});
			$newboxArea.attr({style:"height:"+iframe_height+"px"});
		}
	}

</script>